package model;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * Created by ZYT on 2015/6/18.
 */
public class CreateBean {
    @NotEmpty(message = "username is Empty")
    @NotNull(message = "username is Null")
    private String username;
    @NotEmpty(message = "name is Empty")
    @NotNull(message = "name is Null")
    private String name;
    @NotEmpty(message = "password is Empty")
    @NotNull(message = "password is Null")
    private String password;
    private int role_id;
    private int area_id;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getArea_id() {
        return area_id;
    }

    public void setArea_id(int area_id) {
        this.area_id = area_id;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }
}
